.class public Lcom/melesta/engine/Error;
.super Ljava/lang/Object;
.source "Error.java"


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 11
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method protected static final getStackTrace(Ljava/lang/Throwable;)Ljava/lang/String;
    .locals 3
    .parameter "throwable"

    .prologue
    .line 36
    new-instance v1, Ljava/io/StringWriter;

    invoke-direct {v1}, Ljava/io/StringWriter;-><init>()V

    .line 37
    .local v1, writer:Ljava/io/Writer;
    new-instance v0, Ljava/io/PrintWriter;

    invoke-direct {v0, v1}, Ljava/io/PrintWriter;-><init>(Ljava/io/Writer;)V

    .line 38
    .local v0, printWriter:Ljava/io/PrintWriter;
    invoke-virtual {p0, v0}, Ljava/lang/Throwable;->printStackTrace(Ljava/io/PrintWriter;)V

    .line 39
    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    return-object v2
.end method

.method public static processException(Ljava/lang/Exception;)V
    .locals 1
    .parameter "e"

    .prologue
    .line 14
    const/4 v0, 0x0

    invoke-static {v0, p0}, Lcom/melesta/engine/Error;->processException(Ljava/lang/String;Ljava/lang/Exception;)V

    .line 15
    return-void
.end method

.method public static processException(Ljava/lang/String;Ljava/lang/Exception;)V
    .locals 3
    .parameter "cat"
    .parameter "e"

    .prologue
    .line 19
    if-nez p0, :cond_0

    :try_start_0
    const-string v1, "error"

    .line 20
    .local v1, str:Ljava/lang/String;
    :goto_0
    invoke-static {p1}, Lcom/melesta/engine/Error;->getStackTrace(Ljava/lang/Throwable;)Ljava/lang/String;

    move-result-object v0

    .line 21
    .local v0, exc:Ljava/lang/String;
    invoke-static {v1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 23
    const-string v2, "EngineActivity"

    invoke-static {p0, v0, v2}, Lcom/flurry/android/FlurryAgent;->onError(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 33
    .end local v0           #exc:Ljava/lang/String;
    .end local v1           #str:Ljava/lang/String;
    :goto_1
    return-void

    :cond_0
    move-object v1, p0

    .line 19
    goto :goto_0

    .line 30
    :catch_0
    move-exception v2

    goto :goto_1
.end method
